
package com.verify.repository;

import com.baomidou.mybatisplus.extension.service.IService;
import com.verify.data.domain.PersonDown;
import com.verify.data.domain.PersonInfo;
import com.verify.data.domain.PersonUp;
import com.verify.mapper.PersonDownMapper;
import com.verify.mapper.PersonUpMapper;
import com.verify.repository.base.BaseRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class PersonDownRepository extends BaseRepository<PersonDownMapper, PersonDown>
        implements IService<PersonDown> {

    public List<PersonDown> listByOrgCode(String orgCode) {
        return list(baseQuery().eq(PersonDown::getOrgCode, orgCode));
    }
}
